package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.base.BaseBomInfo;
import com.ruoyi.system.domain.base.TreeShop;

import java.util.List;

/**
 * bom详情Service接口
 *
 * @author ruoyi
 * @date 2023-02-17
 */
public interface IBaseBomInfoService extends IService<BaseBomInfo> {

    String checkBomNameUnique(BaseBomInfo baseBomInfo);

    int insertShop(BaseBomInfo baseBomInfo);

    List<BaseBomInfo> selectBomInfoList(BaseBomInfo baseBomInfo);

    List<TreeShop> buildBomInfoTreeSelect(List<BaseBomInfo> infos);

    boolean hasChildByDeptId(Long id);
}
